package org.dromara.plotInfo.domain.bo;

import org.dromara.plotInfo.domain.LandPlotInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 地块查询业务对象 land_plot_info
 *
 * @author Lion Li
 * @date 2024-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = LandPlotInfo.class, reverseConvertGenerate = false)
public class LandPlotInfoBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long plotId;

    /**
     * 边界坐标
     */
    @NotBlank(message = "边界坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String boundaryCoordinates;

    /**
     * 中心点坐标
     */
    @NotBlank(message = "中心点坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String centerCoordinates;

    /**
     * 面积大小
     */
    @NotNull(message = "面积大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long areaSize;

    /**
     * 土地用途
     */
    @NotBlank(message = "土地用途不能为空", groups = { AddGroup.class, EditGroup.class })
    private String landUse;

    /**
     * 所有者姓名
     */
    @NotBlank(message = "所有者姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ownerName;

    /**
     * 所属集体或单位
     */
    @NotBlank(message = "所属集体或单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ownerType;

    /**
     * 最后登录IP
     */
    @NotBlank(message = "最后登录IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String loginIp;

    /**
     * 最后登录时间
     */
    @NotNull(message = "最后登录时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date loginDate;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
